let fs = require('fs');
let path = require('path');

// 读写文件
fs.writeFile(path.join(__dirname, 'test', '1.txt'), Date.now() + '\n', function () {
  // console.log('ok');
})

fs.readFile(path.join(__dirname,'test', '1.txt'), function (err,data) {
  // console.log(data.toString())
})






